<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <title>自媒体二级页面</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="/css/see/reset.min.css">
    <link rel="stylesheet" href="/plugins/swiper/swiper4.2.min.css">
    <link rel="stylesheet" href="/css/see/selfMedia.min.css?v=<%=$version%>">
</head>
<body>
<div id="selfMediaPage" v-cloak>
    <header class="selfMediaPage-title">
        <span class="title-goback" @click="getBack()"></span>
        {{name}}<span class="triangle-down"></span>
        <span class="title-add"></span>
    </header>
    <div class="selfMediaPage-search">
        <div>搜索<span class="search-icon"></span></div>
    </div>
    <aside class="selfMediaPage-slide" id="selfMediaSlide1">
        <basic-slide :list="categoryCarouselList"></basic-slide>
    </aside>
    <div class="selfMedia-heat">
        <div class="selfMedia-heatTitle selfMediaPage-topTitle"></div>
        <div class="selfMedia-heatSlide">
            <selfmedia-slide :list="categorytopList"></selfmedia-slide>
        </div>
    </div>
    <div class="selfMedia-cent selfMediaPage-cent">
        <div class="selfMedia-tab">
            <span :class="{active:(indexs==1)}" @click="centTitleTab(1)">人气</span>
            <strong></strong>
            <span :class="{active:(indexs==2)}" @click="centTitleTab(2)">附近</span>
            <strong></strong>
            <span :class="{active:(indexs==3)}" @click="centTitleTab(3)">圈子<small>{{totalRow}}</small></span>
        </div>
        <template v-if="indexs==1">
            <selfmedia-flow :list="hotAdvList2"></selfmedia-flow>
        </template>
        <template v-if="indexs==2">
            <selfmedia-flow :list="nearbyAdvList2"></selfmedia-flow>
        </template>
        <template v-if="indexs==3">
            <div class="selfMediaPage-circle">
                <div class="circle-title clearfix">
                    <span :class="{active:sortId=='user_count'}" @click="circleTab(0)">最新创建</span>
                    <span :class="{active:sortId=='create_date'}" @click="circleTab(1)">成员较多</span>
                    <strong class="circle-found">创建我的圈子</strong>
                </div>
                <div class="selfMedia-tabCent circle-cent clearfix">
                    <div class="selfMedia-list circle-centList" v-for="item in circlesList2">
                        <div class="circle-img">
                            <img :data-original="item.coverImgSrc" class="lazy">
                            <span><strong>{{item.userCount}}</strong>人</span>
                        </div>
                        <h6>{{item.name}}</h6>
                        <p><span :style="bgimg(item.headImg)"></span>{{item.uName}}</p>
                    </div>
                </div>
            </div>
        </template>
        <div class="loadtip" v-if="loadFlag"></div>
    </div>
    <prompt-view ref="prompt"></prompt-view>
</div>
<script src='/plugins/js/jquery-1.11.3.min.js'></script>
<script type="text/javascript" src="/plugins/js/jquery.lazyload.min.js"></script>
<script type="text/javascript" src="/plugins/swiper/swiper.min.4.2.js"></script>
<script type="text/javascript" src="/plugins/js/jquery.masonry.min.js"></script>
<script type="text/javascript" src="/plugins/js/vue.min.js"></script>
<script type="text/javascript" src="https://webapi.amap.com/maps?v=1.4.6&key=589381d73924ac781b542765046f3235"></script>
<script type="text/javascript" src="/js/see/remogeo.js"></script>
<script type="text/javascript" src="/js/see/selfMediaPage.js?v=<%=$version%>"></script>
<script>
    var swiper1 = new Swiper("#selfMediaSlide1 .swiper-container",{
        spaceBetween: 30,
        centeredSlides: true,
        autoplay: {
            delay: 1500,
            disableOnInteraction: false
        },
        pagination: {
            el: '.swiper-pagination',
            clickable: true
        },
        lazy: {
            loadPrevNext: true,
            loadPrevNextAmount: 2
        },
        observer: true,//修改swiper自己或子元素时，自动初始化swiper
        observeParents: true//修改swiper的父元素时，自动初始化swiper
    });
    var swiper = new Swiper('.selfMedia-heatSlide .swiper-container', {
        spaceBetween: 10,
        slidesPerView: 'auto',
        freeMode: true,
        lazy: {
            loadPrevNext: true,
            loadPrevNextAmount: 3,
            loadOnTransitionStart: true
        },
        observer: true,//修改swiper自己或子元素时，自动初始化swiper
        observeParents: true//修改swiper的父元素时，自动初始化swiper
    });
    $("img.lazy").lazyload();
</script>
</body>
</html>